<h1>部门管理 - <span id="secondHeading">管理部门</span></h1>
<% if @flash[:notice] -%>
<div id="notice"><%= @flash[:notice] %></div>
<% end -%>
<TABLE border="0" id="LIST_TB">
	<TR id="LIST_TB_TITLE">
		<TD>序号</TD>
		<TD>部门名称</TD>
                <!--
		<TD>备注</TD>
                -->
		<TD>修改</TD>
		<TD>删除</TD>
	</TR>
	<% @departments.each do |department| %>
	<TR id="LIST_TB_CONTENT1">
		<TD><%=department.id%></TD>
		<TD><%=department.name%></TD>
                <!--
		<TD><%=department.memo%></TD>
                -->
		<TD><%=link_to(image_tag("/images/edit.gif"),{:action=>"edit_department",:id=>department.id})%></TD>
		<TD><%=link_to(image_tag("/images/delete.gif"),{:action=>"del_department",:id=>department.id},{:confirm=>"你确定要删除该部门吗?"})%></TD>
	</TR>
	<% end %>
</TABLE>
<table>
        <tr>
                <td>
                        <input type="button" value="打印当前页" class="sub" onclick="openPrintWindow('LIST_TB')"/>
                        <input type="button" value="导出当前数据" class="sub" onclick="CellAreaExcel('LIST_TB')"/>
                </td>
        </tr>
</table>
